﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity
{
    /// <summary>
    /// 佣金
    /// </summary>
    public enum ProductBrokerageStatus
    {
        [Description("推广中")]
        Normal = 0,

        [Description("已清退")]
        Removed = 1,
    }
    /// <summary>
    /// 模板位置
    /// </summary>
    public enum TemplatePosition
    {
        /// <summary>
        /// 顶部
        /// </summary>
        [Description("顶部")]
        Top = 1,

        /// <summary>
        /// 底部
        /// 
        /// </summary>
        [Description("底部")]
        Bottom
    }
    /// <summary>
    /// 销售状态
    /// </summary>
    public enum ProductSaleStatus
    {
        /// <summary>
        /// 原始状态
        /// <para>此状态不可入库，需要取出原数据的销售状态重新补充数据</para>
        /// </summary>
        [Description("原始状态")]
        RawState = 0,
        /// <summary>
        /// 出售中
        /// </summary>
        [Description("出售中")]
        OnSale = 1,

        /// <summary>
        /// 仓库中
        /// </summary>
        [Description("仓库中")]
        InStock = 2,
        /// <summary>
        /// 草稿箱
        /// </summary>
        [Description("草稿箱")]
        InDraft = 3
    }

    /// <summary>
    /// 审核状态
    /// </summary>
    public enum ProductAuditStatus
    {
        /// <summary>
        /// 待审核
        /// </summary>
        [Description("待审核")]
        WaitForAuditing = 1,

        /// <summary>
        /// 销售中
        /// </summary>
        [Description("销售中")]
        Audited,

        /// <summary>
        /// 未通过(审核失败)
        /// </summary>
        [Description("未通过")]
        AuditFailed,

        /// <summary>
        /// 违规下架
        /// </summary>
        [Description("违规下架")]
        InfractionSaleOff,

        /// <summary>
        /// 未审核
        /// </summary>
        [Description("未审核")]
        UnAudit
    }

    /// <summary>
    /// 修改状态
    /// </summary>
    public enum ProductEditStatus
    {
        /// <summary>
        /// 正常
        /// <para>修改已生效</para>
        /// </summary>
        [Description("正常")]
        Normal = 0,

        /// <summary>
        /// 已修改
        /// </summary>
        [Description("已修改")]
        Edited = 1,

        /// <summary>
        /// 待审核
        /// </summary>
        [Description("待审核")]
        PendingAudit = 2,

        /// <summary>
        /// 已修改待审核
        /// <para>已修改+待审核</para>
        /// </summary>
        [Description("已修改待审核")]
        EditedAndPending = 3,
        /// <summary>
        /// 强制待审核
        /// <para>免审上架也需要审核</para>
        /// </summary>
        [Description("强制待审核")]
        CompelPendingAudit = 4,
        /// <summary>
        /// 强制待审已修改
        /// <para>免审上架也需要审核</para>
        /// </summary>
        [Description("强制待审已修改")]
        CompelPendingHasEdited = 5,

    }
}
